const Layout = () => import('@/layout/index.vue')
export default [
  {
    path: '/prop',
    name: 'Prop',
    meta: { title: '打赏礼物配置',icon:'MagicStick' },
    component: Layout,
    children: [
      {
        path: '/prop/gift',
        name: 'propGift',
        component: () => import('@/views/prop/gift/index.vue'),
        meta: { title: '打赏礼物配置', role: ['gift_index'] }
      },
      {
        path: '/prop/counterList',
        name: 'propCounterList',
        component: () => import('@/views/prop/counter/index.vue'),
        meta: { title: '货架管理', role: ['goods_counter'] }
      },
      {
        path: '/prop/luckGiftList',
        name: 'propLuckGiftList',
        component: () => import('@/views/prop/luckGiftList/index.vue'),
        meta: { title: '幸运礼物管理', role: ['luckGiftList_index'] }
      },
      {
        path: '/prop/newLuckGift',
        name: 'propNewLuckGift',
        meta: { title: '新·幸运礼物管理' },
        children:[
          {
            path: '/prop/newLuckGiftList',
            name: 'propNewLuckGiftList',
            component: () => import('@/views/prop/newLuckGiftList/index.vue'),
            meta: { title: '礼物池列表', role: ['newLuckGiftList_index'] },
          },
          {
            path: '/prop/newLuckGiftWhiteList',
            name: 'propNewLuckGiftWhiteList',
            component: () => import('@/views/prop/newLuckGiftList/userWhiteList/index.vue'),
            meta: { title: '用户白名单', role: ['newLuckGiftList_whiteList'] },
          },
          {
            path: '/prop/newLuckGiftDetailList',
            name: 'propNewLuckGiftDetailList',
            component: () => import('@/views/prop/newLuckGiftList/detailList.vue'),
            meta: { title: '参与明细', role: ['newLuckGiftList_detailList'] },
          },
          {
            path: '/prop/newLuckGiftDailystat',
            name: 'propNewLuckGiftDailystat',
            component: () => import('@/views/prop/newLuckGiftList/dailystatList.vue'),
            meta: { title: '参与每日统计', role: ['newLuckGiftList_dailystatList'] },
          },
          {
            path: '/prop/newLuckGiftUserstat',
            name: 'propNewLuckGiftUserstat',
            component: () => import('@/views/prop/newLuckGiftList/userstatList.vue'),
            meta: { title: '参与用户统计', role: ['newLuckGiftList_userstatList'] },
          },
        ]
      },
      {
        path: '/prop/setboxList',
        name: 'propSetboxList',
        component: () => import('@/views/prop/setboxList/index.vue'),
        meta: { title: '套盒礼物管理', role: ['setboxList_index'] }
      },
      {
        path: '/prop/Easteregg',
        name: 'propEasteregg',
        meta: { title: '彩蛋礼物管理' },
        children:[
          {
            path: '/prop/EastereggList',
            name: 'propEastereggList',
            component: () => import('@/views/prop/Easteregg/index.vue'),
            meta: { title: '彩蛋礼物列表', role: ['Easteregg_index'] },
          },
          {
            path: '/prop/EastereggLogList',
            name: 'propEastereggLogList',
            component: () => import('@/views/prop/Easteregg/dayLog.vue'),
            meta: { title: '彩蛋每日报表', role: ['Easteregg_dayLog'] }
          },
          {
            path: '/prop/EastereggRecordingList',
            name: 'propEastereggRecordingList',
            component: () => import('@/views/prop/Easteregg/recording.vue'),
            meta: { title: '彩蛋爆出记录', role: ['Easteregg_recording'] }
          },
          {
            path: '/prop/userCollect',
            name: 'propUserCollect',
            component: () => import('@/views/prop/Easteregg/userCollect.vue'),
            meta: { title: '彩蛋用户汇总', role: ['Easteregg_userCollect']}
          },
          // {
          //   path: '/prop/roomPreview',
          //   name: 'propRoomPreview',
          //   component: () => import('@/views/prop/Easteregg/roomPreview.vue'),
          //   meta: { title: '房间总览页'}
          // },
          {
            path: '/wishingTurntable/EastereggWhiteList',
            name: 'EastereggWhiteList',
            component: () => import('@/views/prop/Easteregg/EastereggWhiteList/index.vue'),
            meta: { title: '彩蛋白名单', role: ['Easteregg_EastereggWhiteList']}
          },
        ]
      },
      // {
      //   path: '/prop/giftBagLog',
      //   name: 'propGiftBagLog',
      //   component: () => import('@/views/prop/giftBagLog/index.vue'),
      //   meta: { title: '背包流水记录表', role: ['giftBagLog_list'] },
      // },
    ],
  },
  {
    path: '/goods',
    name: 'Goods',
    meta: { title: '装扮及铭牌配置',icon:'GoodsFilled' },
    component: Layout,
    children: [
      {
        path: '/goods/goodsList',
        name: 'goodsGoodsList',
        component: () => import('@/views/prop/goodsList/index.vue'),
        meta: { title: '装扮及铭牌配置', role: ['goods_index'] }
      },
      {
        path: '/goods/goodsStatistics',
        name: 'goodsGoodsStatistics',
        component: () => import('@/views/prop/goodsList/statistics.vue'),
        meta: { title: '商品统计', role: ['goods_statisticsgoods'] }
      },
      {
        path: '/goods/goodsDetail',
        name: 'goodsGoodsDetail',
        component: () => import('@/views/prop/goodsList/detailList.vue'),
        meta: { title: '商品流水', role: ['shop_log'] }
      },
      {
        path: '/goods/sendGoods',
        name: 'goodsSendGoods',
        component: () => import('@/views/prop/sendGoods/index.vue'),
        meta: { title: '赠送商品', role: ['sendgoodsrecord_index'] }
      },
      {
        path: '/nameplate/list',
        name: 'nameplateList',
        component: () => import('@/views/prop/nameplate/list/index.vue'),
        meta: { title: '个人铭牌', role: ['nameplate_list'] }
      },
      {
        path: '/nameplate/giveList',
        name: 'nameplateGiveList',
        component: () => import('@/views/prop/nameplate/give/index.vue'),
        meta: { title: '下发铭牌', role: ['nameplate_giveList'] }
      },
    ],
  },
]
